﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace ResourceViewerExtension.Model
{
    public class EntryModel
    {
        public string Key { get; set; }
        public object Value { get; set; }
        public string DictionaryName { get; set; }

        public EntryModel()
        {
        }

        public EntryModel(string key, object val, string dicName = "")
        {
            Key = key;
            Value = val;
            DictionaryName = dicName;
        }

        public EntryModel(DictionaryEntry de, string dicName = "")
        {
            Key = Convert.ToString(de.Key);
            Value = de.Value;
            DictionaryName = dicName;
        }
    }
}
